﻿using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;

namespace backend.Models
{
    public class LoginModel
    {
        [JsonPropertyName("username")]
        [Display(Name ="用户名")]
        [Required(ErrorMessage = "{0}必填")]
        public string UserName { get; set; }

        //首字母会自动小写
        [Display(Name = "密码")]
        [Required(ErrorMessage = "{0}必填")]
        public string Password { get; set; }
    }
}